<?php

//队列模式
include_once './queue/queue.php';
include_once './function/function.php';
//
//function objectToArray($e) {
//    $e = (array) $e;
//    foreach ($e as $k => $v) {
//        if (gettype($v) == 'resource')
//            return;
//        if (gettype($v) == 'object' || gettype($v) == 'array')
//            $e[$k] = (array) objectToArray($v);
//    }
//    return $e;
//}
//
//try {
//
//    $list = new queue();
////    $rr = new server();
//    $list->push('1111');
////    $list->push($list);
////    $list->pop();
////    $list->output();
//    $rr = $list->get_queue_array();
////    $rr = $list->count_queue();
////    print_r($rr);
////    print_r(json_decode(json_encode($rr)));
////    $serialize = serialize($rr);
//    print_r($rr);
//
//
//
////    $rr = server::get_queue();
////    pp($rr);
//} catch (\Exception $e) {
////    p($e);
//    pp($e->getMessage());
//}
//根据时间生成唯一的hash id

$time = microtime(true);

//pp(gettimeofday());
//$id = uniqid();
//p($id);
//echo uniqid();
//p($time);


echo md5(microtime(true) . uniqid() . mt_rand(10000, 99999));
